﻿using System;

namespace Triad.Model
{
    /// <summary>
    /// Summary description for OperationStatus
    /// </summary>
    public class OperationStatus
    {
        public OperationStatus() { }

        public OperationStatus(bool status, string message, Exception exp)
            : this(status, message, exp, Guid.Empty)
        {
        }

        public OperationStatus(bool status, string message, Exception exp, Guid insertedRowID)
        {
            Status = status;
            Message = message;
            Exception = exp;
            InsertedRowID = insertedRowID;
        }

        public string Message { get; set; }

        public bool Status { get; set; }

        public Exception Exception { get; set; }

        public Guid InsertedRowID { get; set; }
    }
}
